package com.dykj.fireFighting.server.base.analysis.service.impl;

import com.dykj.fireFighting.api.base.analysis.entity.AreaLevel;
import com.dykj.fireFighting.api.base.analysis.entity.AreaMap;
import com.dykj.fireFighting.api.base.analysis.service.ILevelAnalysisService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.base.analysis.mapper.AreaMapMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/*
 * 排名分析
 */
@Slf4j
@DubboService
public class LevelAnalysisServiceImpl extends BaseServiceImpl<AreaMapMapper, AreaMap> implements ILevelAnalysisService {
    @Override
    public List<AreaMap> getFireAlarmAreaMap(String beginTime, String endTime) {
        return this.baseMapper.getFireAlarmAreaMap( beginTime,  endTime);
    }

    @Override
    public List<AreaMap> getFaultAreaMap(String beginTime, String endTime) {
        return this.baseMapper.getFaultAreaMap( beginTime, endTime);
    }

    @Override
    public List<AreaMap> getEarlyWarningAreaMap(String beginTime, String endTime) {
        return this.baseMapper.getEarlyWarningAreaMap( beginTime, endTime);
    }

    @Override
    public List<AreaLevel> getFireAlarmAreaLevelByYear(String beginTime) {
        return this.baseMapper.getFireAlarmAreaLevelByYear(beginTime);
    }

    @Override
    public List<AreaLevel> getFaultAreaLevelByYear(String beginTime) {
        return this.baseMapper.getFaultAreaLevelByYear(beginTime);
    }

    @Override
    public List<AreaLevel> getEarlyWarningAreaLevelByYear(String beginTime) {
        return this.baseMapper.getEarlyWarningAreaLevelByYear(beginTime);
    }

    @Override
    public List<AreaLevel> getFireAlarmAreaLevelByQuarter(String beginTime) {
        return this.baseMapper.getFireAlarmAreaLevelByQuarter(beginTime);
    }

    @Override
    public List<AreaLevel> getFaultAreaLevelByQuarter(String beginTime) {
        return this.baseMapper.getFaultAreaLevelByQuarter(beginTime);
    }

    @Override
    public List<AreaLevel> getEarlyWarningAreaLevelByQuarter(String beginTime) {
        return this.baseMapper.getEarlyWarningAreaLevelByQuarter(beginTime);
    }

    @Override
    public List<AreaLevel> getFireAlarmAreaLevelByMonth(String beginTime) {
        return this.baseMapper.getFireAlarmAreaLevelByMonth(beginTime);
    }

    @Override
    public List<AreaLevel> getFaultAreaLevelByMonth(String beginTime) {
        return this.baseMapper.getFaultAreaLevelByMonth(beginTime);
    }

    @Override
    public List<AreaLevel> getEarlyWarningAreaLevelByMonth(String beginTime) {
        return this.baseMapper.getEarlyWarningAreaLevelByMonth(beginTime);
    }
}
